from cv2 import cv2
import numpy as np
color=np.uint8([[[255, 77, 77]]])  #依次为bgr，不是rgb
hsv_color=cv2.cvtColor(color,cv2.COLOR_BGR2HSV) # bgr to hsv
print (hsv_color)
bgr_color=cv2.cvtColor(hsv_color,cv2.COLOR_HSV2BGR) # hsv to bgr
print(bgr_color)
